package person.aoao.library.result;

public enum ResponseCode {
    SUCCESS("200","操作成功"),
    ERROR("500","ServerException"),
    FIAL("301","操作错误"),
    FAIL_INFO("203","账号或密码错误"),
    ROLE_FAIL("202","账号权限不足"),

    ACCOUNT_STATE("202","账号被禁用"),
    Number_ERROR("202","手机号已存在"),

    Acount_ERROR("202","用户已经是管理员"),

    Acount_NO("202","用户不存在"),
    Acount_Yes("202","用户存在"),
    Mail_ERROR("202","邮箱存在");

    private String code;
    private String info;


    ResponseCode(String code, String info) {
        this.code = code;
        this.info = info;
    }


    public String getCode() {
        return code;
    }



    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}